package io.geekidea.boot.area.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.geekidea.boot.common.BaseEntity;
import io.geekidea.boot.system.entity.SysUser;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("tb_area")
public class ImportArea implements Serializable {

    private static final long serialVersionUID = 1L;
//    @ExcelProperty("用户编号")
//    @ColumnWidth(20)
//    @TableId(value = "id",type = IdType.AUTO)
//    private Integer id;

    @ExcelProperty("战区名称")
    @ColumnWidth(20)
    @TableField("name")
    private String name;

    @ExcelProperty("战区编码")
    @ColumnWidth(20)
    @TableField("code")
    private String code;


    @ExcelProperty("负责人名称")
    @ColumnWidth(20)
    @TableField("principal")
    private String principal;

    @ExcelProperty("负责人联系方式")
    @ColumnWidth(20)
    @TableField("phoneNumber")
    private String phoneNumber;

//    @ExcelProperty(value = "用户状态",converter = )
//    @ColumnWidth(20)
//    @TableField("status")
//    private String status;

    @ExcelProperty("创建时间")
    @ColumnWidth(20)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8",shape = JsonFormat.Shape.STRING)
    @TableField("createdTime")
    private LocalDateTime createdTime;

    @ExcelProperty("修改时间")
    @ColumnWidth(20)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8",shape = JsonFormat.Shape.STRING)
    @TableField("updatedTime")
    private LocalDateTime updatedTime;
}
